package com.back.network.web.service;

import com.back.network.web.entity.EmailInfo;
import com.back.network.web.pojo.MailPOJO;

public interface MailService {
	/**
	 * 简单邮件
	 */
	public void sendSimpleMail(MailPOJO mail);

	/**
	 * html邮件
	 */
	public void sendHTMLMail(MailPOJO mail);

	/***
	 * 注册验证码邮件
	 */
	public void sendSignUpMail(String email, String code);

	/**
	 * 密码重置验证码邮件
	 */
	public void sendResetPwdMail(String email, String code);

	/**
	 * 
	 */
	public void saveMailInfo(EmailInfo emailInfo);
	
	public boolean checkCode(EmailInfo emailInfo);

}
